<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="applicable-device" content="pc,mobile">
    <meta name="MobileOptimized" content="width"/>
    <meta name="HandheldFriendly" content="true"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
    <link rel="shortcut icon" href="{$domainStatic}/favicon.ico" type="image/x-icon" />
    <title>{$itemInfo.title}_{$settingInfo.siteName}</title>
    <meta name="keywords" content="{$itemInfo.keywords}">
    <meta name="description" content="{$itemInfo.description}">
    {include file='headerStatic'}
</head>
<body>
{include file='header'}
<div class="layout-main" id="app">
    <div class="container">
         {tag:articlecrumb isHome='1' cid="$itemInfo['cid']" itemId="$itemInfo['id']" ulClass='breadcrumb p-0 mt-3 bg-transparent' liClass="breadcrumb-item" separator='' /}
        <div class="row">
            <main class="col-12 col-lg-8">
                <section class="ssy-box">
                    <section class="ssy-box-heading">
                         <h1 class="detail-title">{$itemInfo['title']}</h1>
                         <div class="detail-info clearfix">
                            <ul class="list-unstyled text-muted d-inline-block">
                                <li class="list-inline-item">时间:<time>{$itemInfo['publish_time']|date='Y-m-d H:i:s',###}</time></li>
                                <li class="list-inline-item p-l-5">浏览:{$itemInfo['views']}</li>
                                <li class="list-inline-item p-l-5 d-none d-lg-inline-block">来源:{$settingInfo['siteName']}</li>
                            </ul>
                            <ul class="ssy-tags ssy-tags-list float-left float-lg-right">
                                {tag:tags id='v' itemIds='$itemInfo["uuid"]' type='article'}
                                <li class="tags-item"><a href="{$v['url']}" class="tags-link" title="{$v['title']}" >{$v['title']}</a></li>
                                {/tag:tags}
                            </ul>
                        </div>
                    </section>
                    <section class="ssy-box-body ssy-detail-body">
                        {$itemInfo['content']}
                    </section>
                    <div class="text-right p-3">
                        {if condition='$isUserAdmin && $itemInfo["uid"] == $userId'}
                        <a class="ssy-btn ssy-btn-empty ssy-btn-xs" href="{$domain}/account/article/articlePublish/?uuid={$itemInfo.uuid}">编辑</a>
                        <a class="ssy-btn ssy-btn-empty ssy-btn-xs" data-item-id='{$itemInfo.uuid}' id="itemDel">删除</a>
                        {/if}
                    </div>
                    <div class="ssy-box-footer">
                        <div class="ssy-page ssy-page-default">
                            <ul class="page-list">
                                {tag:articlepage id='val' limit='1' itemId='$itemInfo["id"]' type='detail' itemType='upPage'}
                                <li class="page-item item-up">
                                    <p class="mb-1 text-muted">上一篇</p>
                                    <a href="{$val.url}" class="item-link">{$val.title}</a>
                                </li>
                                {/tag:articlepage}
                                {tag:articlepage id='val' limit='1' itemId='$itemInfo["id"]' type='detail' itemType='downPage'}
                                <li class="page-item item-down">
                                    <p class="mb-1 text-muted">下一篇</p>
                                    <a href="{$val.url}" class="item-link">{$val.title}</a>
                                </li>
                                {/tag:articlepage}
                            </ul>
                        </div>
                    </div>
                </section>
            </main>
            <aside class="col-12 col-lg-4">
                {include file='article/block/side-article-news'}
            </aside>
    
        </div>
    </div>
</div>
{include file='footer'}
</body>
</html>

